<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Zyben extends CI_Controller {

	/**
	 * 作业本首页
	 */
	public function index()
	{
	
		//图书分类模块
		$this->load->model("m_category");
		$this->load->model("m_books");
		
		$category = $this->m_category->selectCategory( 1 , 18);
		
		$data = array('title' => '作业本教材网 - 大学二手书商城_二手教材', 'style' => 'zyben/index');
		$data['category'] = $category;
		
		$data['index_banner'] = $this->m_banner->selectBanner('focus_map');
		$data['index_activity'] = $this->m_banner->selectBanner('index_activity');
		
		$data['books'] = $this->m_books->selectBooks( 0 , 12 , '','','1');
		
		$data['topbar_first_class_display'] = 'open';
		
		
		$this->load->view('header',$data);
		$this->load->view('zyben/index');
		$this->load->view('footer');
	}
	
	public function error()
	{
		$this->load->view('fenzhong/error');
	}
}

/* End of file fenzhong.php */
/* Location: ./application/controllers/fenzhong.php */
